#include <iostream>
#include <string>
#include <vector>
#include <deque>

using namespace std;


struct stu
{
public:
    string name;
    string skill;
    int id;

public:
    stu()  {}

    stu(string name , string skill ,int id) : name(name) , skill(skill) , id(id) {}
};

int main(int argc, char const *argv[])
{
    deque<stu> stu_v;

    stu_v.push_front(stu("唐三","复活吧我的爱人!",1));
    stu_v.push_front(stu("萧炎","佛怒火莲",2));   

    for ( auto it = stu_v.begin(); it != stu_v.end(); it++)
    {
       stu temp = *it;
       cout <<"姓名:" <<temp.name << " 技能:" << temp.skill << " 学号:" << temp.id << endl;
    }
    
    cout << endl;
    //头删 
    stu_v.pop_front();
    for (auto it = stu_v.begin(); it != stu_v.end(); it++)
    {
        stu temp = *it;
        cout << "姓名:" <<temp.name << " 技能:" << temp.skill <<" 学号:" << temp.id << endl;
    }
    

    
    return 0;
}
